package xyz.labmem.main.modular.common.controller

import xyz.labmem.base.sys.base.BaseController
import io.swagger.annotations.Api
import io.swagger.annotations.ApiOperation
import org.springframework.web.bind.annotation.GetMapping
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import xyz.labmem.base.core.result.RV
import xyz.labmem.base.sys.consts.PathPrefixConst

/**
 * @Author lty
 * @Date 2021/12/21 9:06
 */
@RestController
@Api(tags = ["个人信息"])
@RequestMapping("${PathPrefixConst.COMMON_PATH_PREFIX}person")
class ComPersonController : BaseController() {

    @GetMapping("logged")
    @ApiOperation(value = "验证登录")
    fun logged(): RV<*> = success()

    @GetMapping("info")
    @ApiOperation(value = "个人账号信息")
    fun info(): RV<*> = success(getLoginUser())

}